package com.hangzhou.xyj.engine;

import com.hangzhou.xyj.model.AppUpdateModel;

/**
 * Created by neo.duan on 2016/6/3.
 * 版本更新引擎
 */
public interface AppUpdateEngine {
    /**
     * app是否需要更新,检查更新的一些规则:一天内不检查更新了
     * @return
     */
    boolean isNeedUpdate();

    boolean isShowUpdateDialog(AppUpdateModel model);

    void downLoadApk(String appUrl);

    void showUpdateDialog(AppUpdateModel model);
}
